﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace homework1_auto_ques
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public static MainWindow win;

        public MainWindow()
        {
            InitializeComponent();
            Frame frame1 = new Frame() { Content = new pages.Page1() };
            win = this;
            ContentCon.Content = frame1;
        }

        //自定义拖动
        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                DragMove();
            }
        }

        /*//改变窗口
        public void WindowChange(WindowsID winid)
        {
            switch (winid)
            {
                case WindowsID.frame1:
                    ContentCon.Content = frame1;
                    break;
                case WindowsID.frame2:
                    ContentCon.Content = frame2;
                    break;
            }
        }
*/
       
    }
}
